import React from 'react';
import { Router as DefaultRouter, Route, Switch } from 'react-router-dom';
import dynamic from 'umi/dynamic';
import renderRoutes from 'umi/_renderRoutes';


let Router = require('dva/router').routerRedux.ConnectedRouter;

let routes = [
  {
    "path": "/",
    "component": require('../../layouts/index.js').default,
    "routes": [
      {
        "path": "/redPkgRecord",
        "exact": true,
        "component": require('../redPkgRecord/index.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/",
        "exact": true,
        "component": require('../index.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/layout",
        "exact": false,
        "component": require('../layout/_layout.js').default,
        "routes": [
          {
            "path": "/layout/myLarn/service",
            "exact": true,
            "component": require('../layout/myLarn/service.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/activity/components/activityItem",
            "exact": true,
            "component": require('../layout/activity/components/activityItem.jsx').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/activity/models/activity",
            "exact": true,
            "component": require('../layout/activity/models/activity.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/factoryVedio",
            "exact": true,
            "component": require('../layout/factoryVedio/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/factoryVedio/models/factoryVedio",
            "exact": true,
            "component": require('../layout/factoryVedio/models/factoryVedio.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/gardenVedio",
            "exact": true,
            "component": require('../layout/gardenVedio/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/gardenVedio/models/gardenVedio",
            "exact": true,
            "component": require('../layout/gardenVedio/models/gardenVedio.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/inviteQCode",
            "exact": true,
            "component": require('../layout/inviteQCode/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/inviteQCode/models/inviteQCode",
            "exact": true,
            "component": require('../layout/inviteQCode/models/inviteQCode.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/message",
            "exact": true,
            "component": require('../layout/message/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/message/models/message",
            "exact": true,
            "component": require('../layout/message/models/message.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/cmsDetail",
            "exact": true,
            "component": require('../layout/cmsDetail/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/cmsDetail/models/cmsDetail",
            "exact": true,
            "component": require('../layout/cmsDetail/models/cmsDetail.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/myGarden",
            "exact": true,
            "component": require('../layout/myGarden/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/myGarden/models/myGarden",
            "exact": true,
            "component": require('../layout/myGarden/models/myGarden.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/myKefu",
            "exact": true,
            "component": require('../layout/myKefu/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/myLarn",
            "exact": true,
            "component": require('../layout/myLarn/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/myLarn/models/myLarn",
            "exact": true,
            "component": require('../layout/myLarn/models/myLarn.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/activity",
            "exact": true,
            "component": require('../layout/activity/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/pastureVedio",
            "exact": true,
            "component": require('../layout/pastureVedio/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/pastureVedio/models/pastureVedio",
            "exact": true,
            "component": require('../layout/pastureVedio/models/pastureVedio.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/periodList",
            "exact": true,
            "component": require('../layout/periodList/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/periodList/models/periodList",
            "exact": true,
            "component": require('../layout/periodList/models/periodList.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/cms",
            "exact": true,
            "component": require('../layout/cms/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/cms/models/cms",
            "exact": true,
            "component": require('../layout/cms/models/cms.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/record",
            "exact": true,
            "component": require('../layout/record/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/buy",
            "exact": true,
            "component": require('../layout/buy/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/buy/models/buy",
            "exact": true,
            "component": require('../layout/buy/models/buy.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/setting",
            "exact": true,
            "component": require('../layout/setting/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/bankCardList",
            "exact": true,
            "component": require('../layout/bankCardList/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/bankCardList/model",
            "exact": true,
            "component": require('../layout/bankCardList/model.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/yiyuan",
            "exact": true,
            "component": require('../layout/yiyuan/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/addBankCard",
            "exact": true,
            "component": require('../layout/addBankCard/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/yongjin",
            "exact": true,
            "component": require('../layout/yongjin/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/myActivity",
            "exact": true,
            "component": require('../layout/myActivity/index.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
            "path": "/layout/myActivity/models/myActivity",
            "exact": true,
            "component": require('../layout/myActivity/models/myActivity.js').default,
            "_title": "精天",
            "_title_default": "精天"
          },
          {
<<<<<<< HEAD
            "component": () => React.createElement(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/node_modules/.1.2.0@umi-build-dev/lib/plugins/404/NotFound.js').default, { pagesPath: 'src/pages', hasRoutesInConfig: false }),
=======
            "component": () => React.createElement(require('C:/work/react/yangniula-umi/node_modules/_umi-build-dev@1.2.0@umi-build-dev/lib/plugins/404/NotFound.js').default, { pagesPath: 'src/pages', hasRoutesInConfig: false }),
>>>>>>> 732a740e1bbe8886770bcd9129d4299e38428766
            "_title": "精天",
            "_title_default": "精天"
          }
        ],
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/login/model",
        "exact": true,
        "component": require('../login/model.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/main",
        "exact": true,
        "component": require('../main/index.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/main/models/main",
        "exact": true,
        "component": require('../main/models/main.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/more",
        "exact": true,
        "component": require('../more/index.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/more/models/more",
        "exact": true,
        "component": require('../more/models/more.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/pasture",
        "exact": true,
        "component": require('../pasture/index.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/pasture/models/pasture",
        "exact": true,
        "component": require('../pasture/models/pasture.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/pay",
        "exact": true,
        "component": require('../pay/index.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/redPkgList",
        "exact": true,
        "component": require('../redPkgList/index.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/redPkgList/model",
        "exact": true,
        "component": require('../redPkgList/model.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/appDownload",
        "exact": true,
        "component": require('../appDownload/index.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/redPkgRecord/model",
        "exact": true,
        "component": require('../redPkgRecord/model.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/wallet",
        "exact": true,
        "component": require('../wallet/index.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/wallet/models/wallet",
        "exact": true,
        "component": require('../wallet/models/wallet.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/login",
        "exact": true,
        "component": require('../login/index.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/yangji",
        "exact": true,
        "component": require('../yangji/index.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/yangji/model",
        "exact": true,
        "component": require('../yangji/model.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/contract",
        "exact": true,
        "component": require('../contract/index.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/contract/model",
        "exact": true,
        "component": require('../contract/model.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/zhongcai",
        "exact": true,
        "component": require('../zhongcai/index.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/zhongcai/model",
        "exact": true,
        "component": require('../zhongcai/model.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/muniuren",
        "exact": true,
        "component": require('../muniuren/index.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
        "path": "/muniuren/models/muniuren",
        "exact": true,
        "component": require('../muniuren/models/muniuren.js').default,
        "_title": "精天",
        "_title_default": "精天"
      },
      {
<<<<<<< HEAD
        "component": () => React.createElement(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/node_modules/.1.2.0@umi-build-dev/lib/plugins/404/NotFound.js').default, { pagesPath: 'src/pages', hasRoutesInConfig: false }),
=======
        "component": () => React.createElement(require('C:/work/react/yangniula-umi/node_modules/_umi-build-dev@1.2.0@umi-build-dev/lib/plugins/404/NotFound.js').default, { pagesPath: 'src/pages', hasRoutesInConfig: false }),
>>>>>>> 732a740e1bbe8886770bcd9129d4299e38428766
        "_title": "精天",
        "_title_default": "精天"
      }
    ],
    "_title": "精天",
    "_title_default": "精天"
  },
  {
<<<<<<< HEAD
    "component": () => React.createElement(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/node_modules/.1.2.0@umi-build-dev/lib/plugins/404/NotFound.js').default, { pagesPath: 'src/pages', hasRoutesInConfig: false }),
=======
    "component": () => React.createElement(require('C:/work/react/yangniula-umi/node_modules/_umi-build-dev@1.2.0@umi-build-dev/lib/plugins/404/NotFound.js').default, { pagesPath: 'src/pages', hasRoutesInConfig: false }),
>>>>>>> 732a740e1bbe8886770bcd9129d4299e38428766
    "_title": "精天",
    "_title_default": "精天"
  }
];
window.g_plugins.applyForEach('patchRoutes', { initialValue: routes });

export default function() {
  return (
<Router history={window.g_history}>
      { renderRoutes(routes, {}) }
    </Router>
  );
}
